package com.zt.student.dao;

import com.zt.common.Do.ClassWithTeachDO;
import com.zt.common.pojo.ActiveClass;
import com.zt.student.dto.ClassScoreDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:
 * author:zt
 * date:2021-12-26
 */
@Mapper
public interface ActiveClassDao {

    ActiveClass getClassById(int id);

    List<ClassWithTeachDO> getAllActiveClass(@Param("studentId") String studentId, @Param("semester") String semester);

    List<ClassWithTeachDO> getSelectedElectiveClass(@Param("studentId") String studentId, @Param("semester") String semester);

    List<ClassWithTeachDO> getSelectedCompulsoryClass(@Param("studentId") String studentId, @Param("semester") String semester);

    List<ClassWithTeachDO> getAllSelectedClass(@Param("studentId") String studentId, @Param("semester") String semester);

    List<ActiveClass> getClassByTeaAndStuId(@Param("teacherId") String teacherId, @Param("studentId") String studentId, String semester);

    List<ClassScoreDTO> getScoreBySemester(@Param("semester") String semester,@Param("studentId") String studentId);

}
